{extend name='main'}
{block name="button"}
<!--{if auth("add")}-->
<button data-modal='{:url("add")}' data-title="添加计费模式" class='layui-btn layui-btn-sm layui-btn-primary'>添加计费模式</button>
<!--{/if}-->
<!--{if auth("remove")}-->
<a data-confirm="确定要删除这些计费模式吗？" data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('remove')}" class='layui-btn layui-btn-sm layui-btn-primary'>删除计费模式</a>
<!--{/if}-->
{/block}
{block name="content"}
<div class="layui-tab layui-tab-card think-bg-white table-block">
    <div class="layui-tab-content think-box-shadow table-block table-block">
        {include file='charge/index_search'}
        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <th>ID</th>
                <th class='text-left nowrap'>柜点名称</th>
                <th class='text-left nowrap'>计费模式</th>
                <th class='text-left nowrap'>模式标题</th>
                <th class='text-left nowrap'>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr data-dbclick>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
                </td>
                <td>{$vo.id|default=''}</td>
                <td class="nowrap">{$vo.store_name|default=''}</td>
                <td class="nowrap">{$fee_types[$vo.fee_type]|default=''}</td>
                <td class="nowrap">{$vo.title|default=''}</td>
                <td class="nowrap">{$vo.create_at|default=''}</td>
                <td class='text-left nowrap'>

                    <!--{if auth("edit")}-->
                    <a class="layui-btn layui-btn-sm" data-title="编辑" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
                    <!--{/if}-->
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
</div>
{/block}
